package com.woniu.after.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.after.entity.TOrderAfter;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.after.entity.dto.*;
import com.woniu.common.dto.MySkuOrderDto;
import com.woniu.common.dto.OrderAfterQMoneyDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
* @author Kenneon
* @description 针对表【t_order_after】的数据库操作Mapper
* @createDate 2024-05-25 10:29:45
* @Entity com.woniu.after.entity.TOrderAfter
*/
public interface TOrderAfterMapper extends BaseMapper<TOrderAfter> {

    IPage<OrderAfterDto> queryAfterInfo(Page<?> page, @Param("orderAfterDto") OrderAfterDto orderAfterDto);
    List<OrderAfterQMoneyDto> queryOrderAfterMoney(@Param("orderAfterQMoneyDto") OrderAfterQMoneyDto orderAfterQMoneyDto);
    OrderAfterDetailDto queryOrderAfterDetail(Long detailNum);

    OrderNumberDetailDto queryByAfterNum(@Param("afterNum") Long afterNum);

//    根据子订单查询物流信息
    OrderAfteIogisticsDto queryOrderIoInfo(Long detailNum);

//    查询需要导出的数据
    List<OrderAfterExcelDto> exportAfterExcel(@Param("detailNums") List<String> detailNum);

    List<MySkuOrderDto> queryOrderOK(@Param("phone") String phone);
}




